package com.charging.system.domain;

import java.math.BigDecimal;

import com.charging.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.charging.common.annotation.Excel;

/**
 * 用户信息对象 kx_user_info
 *
 * @author charging
 * @date 2024-04-19
 */
public class KxUserInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 用户账号 */
    @Excel(name = "登录名称")
    private String userName;

    /** 用户昵称 */
    @Excel(name = "用户名称")
    private String nickName;
    /** 用户头像 */
    private String avatar;
    /** 帐号状态（0正常 1停用） */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 第三方Id */
    @Excel(name = "第三方Id")
    private String openId;

    /** 用户类型,1微信，2支付宝 */
    @Excel(name = "用户类型,1微信，2支付宝")
    private Integer userType;

    /** 用户余额 */
    @Excel(name = "用户余额")
    private BigDecimal balance;

    /** 赠送金额 */
    @Excel(name = "赠送金额")
    private BigDecimal give;

    /** 充值次数 */
    @Excel(name = "充值次数")
    private Long rechargeTimes;

    /** 充电次数 */
    @Excel(name = "充电次数")
    private Long chargingTimes;

    /** 常用电站 */
    @Excel(name = "常用电站")
    private Long commonUsed;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setOpenId(String openId)
    {
        this.openId = openId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getOpenId()
    {
        return openId;
    }
    public void setUserType(Integer userType)
    {
        this.userType = userType;
    }

    public Integer getUserType()
    {
        return userType;
    }
    public void setBalance(BigDecimal balance)
    {
        this.balance = balance;
    }

    public BigDecimal getBalance()
    {
        return balance;
    }
    public void setGive(BigDecimal give)
    {
        this.give = give;
    }

    public BigDecimal getGive()
    {
        return give;
    }
    public void setRechargeTimes(Long rechargeTimes)
    {
        this.rechargeTimes = rechargeTimes;
    }

    public Long getRechargeTimes()
    {
        return rechargeTimes;
    }
    public void setChargingTimes(Long chargingTimes)
    {
        this.chargingTimes = chargingTimes;
    }

    public Long getChargingTimes()
    {
        return chargingTimes;
    }
    public void setCommonUsed(Long commonUsed)
    {
        this.commonUsed = commonUsed;
    }

    public Long getCommonUsed()
    {
        return commonUsed;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("openId", getOpenId())
            .append("userType", getUserType())
            .append("balance", getBalance())
            .append("give", getGive())
            .append("rechargeTimes", getRechargeTimes())
            .append("chargingTimes", getChargingTimes())
            .append("commonUsed", getCommonUsed())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
